<template>
<h1>Admin 权限管理 {{data}}</h1>
</template>

<script>
export default {

  data () {
    return {
      data:''
    };
  },
  mounted(){
    this.testAdmin();
  },
  methods:{
    testAdmin(){
      let that = this;
      axios.get('/admin/test').then(function(res) {
        if(res.data.code === 200){
          that.data = res.data.data;
        }else{
          that.$message.error("no data !" + res.data);
        }
      })
    }
  }
}
</script>

<style scoped>

</style>